package cn.wolfcode.service;



import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;

import java.util.List;
import java.util.Set;

public interface IPermissionService {
    void delete(Long id);

    void insert(Permission permission);

    Permission selectOne(Long id);

    List<Permission> selectAll();

    void update(Permission permission);

    // 分页查询
    PageInfo<Permission> query(QueryObject qo);

    void savePermissions(Set<Permission> permissionList);

    List<Permission> selectPermissionById(Long id);

    List<String> selectPermissionsByEmpId(Long id);

    List<String> selectPermissions();

    Workbook export();

    void importExcel(Workbook workbook);
}
